package com.gitee.wsl.func.operator

/**
 * Represents an operation upon two `int`-valued operands and producing an
 * `int`-valued result.   This is the primitive type specialization of
 * [BinaryOperator] for `int`.
 *
 *
 * This is a [functional interface](package-summary.html)
 * whose functional method is [.applyAsInt].
 *
 * @see BinaryOperator
 *
 * @see IntUnaryOperator
 *
 * @since 1.8
 */
fun interface IntBinaryOperator {
    /**
     * Applies this operator to the given operands.
     *
     * @param left the first operand
     * @param right the second operand
     * @return the operator result
     */
    fun applyAsInt(left: Int, right: Int): Int
}